from .config import *
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker


class Mysql:
    @staticmethod
    def get_session(echo=False):
        engine = create_engine("mysql+mysqlconnector://{user}:{password}@localhost:3306/{database}".format(
            user=user, password=password, database=database), echo=echo)
        return sessionmaker(bind=engine)()


if __name__ == '__main__':
    pass
